package com.zengqingfa.juc.n4;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author zengqingfa
 * @className UserDaoImpl
 * @description
 * @create 2021/6/11 23:20
 */
public class UserDaoImpl implements UserDao {

    // 是否安全,不安全，存在共享
    private Connection conn = null;

    public void update(String s) throws SQLException {
        String sql = "update user set password = ? where username = ?";
        conn = DriverManager.getConnection("", "", "");
        // ...
        conn.close();
    }
}